<link rel="stylesheet" href="<?php echo base_url();?>assets/css/dhtmlgoodies_calendar.css" />
<script type="text/javascript" src="<?php echo base_url();?>assets/js/dhtmlgoodies_calendar.js"></script>
<h1>Trace Document - <?php echo $kindbox;?></h1>
<div id="tracedocumentbox" align="center">
    <form name="form" method="POST" action="<?php echo base_url();?>shippingline/searchtracedocument">
        <fieldset>
        <legend> Search </legend>
        <table>
            <tr>
                <td><label>Kind of Document</label></td>
                <td>
                    <select name="listdocument">
                        <option value="AllDocument">-- All Document --</option>
                        <option value="BL">Bill of Lading</option>
                        <option value="FI">Freight Invoice</option>
                        <option value="FB">Freight Bill</option>
                    </select>
                </td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td><label>Sent Date</label></td>
                <td><input type="text" value="-" name="FromDate" /></td><td><input type="button" value="Date" onclick="displayCalendar(document.forms[0].FromDate,'yyyy/mm/dd',this)" /></td>
                <td><input type="text" value="-" name="ToDate" /></td><td><input type="button" value="Date" onclick="displayCalendar(document.forms[0].ToDate,'yyyy/mm/dd',this)" /></td>
            </tr>
            <tr>
                <td><label>Limit</label></td>
                <td><input type="text" name="limit" value="-"/></td>
                <td></td>
                <td><label>ex : '-' for all, '1' for one</label></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="search" name="submit" /></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </table>
        </fieldset>
    </form>
</div>
<br />
<br />
<div id="tracedocumenttable" align="center">
<?php
    echo $table;
?>
</div>
<br />
<br />